<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/gwc.css">
</head>
<body>
  <div class="root">
      <div class="wrap">
          <div class="topbar">
              <span class="lograg">
                  <a href="dengluzhuce.html" class="first">登录</a>
                    <a href="dengluzhuce.html" class="areg">注册</a>
              </span>
              <span class="welcom">您好，欢迎来到银座网！</span>

              <ul class="topnav">
                  <li class="expend"><dl class="order"><dt><a href="" class="item">我的订单</a></dt></dl></li>
                  <li class="expend">
                      <dl class="myegg">
                          <dt>
                              <a href="" class="item1">会员中心</a>
                            </dt>
                            <dd>
                                <ol>
                                    <li><a href="">我的订单</a></li>
                                    <li><a href="">我的订单</a></li>
                                    <li><a href="">我的订单</a></li>
                                </ol>
                            </dd>
                        </dl></li>
                  <li class="listitem"><a href="">帮助中心</a></li>
                  <li class="listitem"><a href="">掌上银座</a></li>
                  <li class="listitem"><a href="">客户服务</a></li>
              </ul>
          </div>
      </div>

      <div class="logo">
        <div class="tu"></div>
        <div class="tu2"><img src="http://www.yinzuo100.com/themes/xhm_ver3/images/img_ck.jpg" alt=""></div>
    </div>

      <div class="last">
        <table border=1 width=1000 align="center" cellspacing=0 class="headlist">
            <thead>
                <tr>
                    <th>图片</th>
                    <th>名称</th>
                    <th>价格</th>
                    <th>数量</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
              <script src="jquery.2.2.4.js"></script>
              <script>
                   $.ajax({
          url:"http://localhost:3000/api",
          data:{ type:"goods"},
          success:res=>{
              let i;
              res.some((item,idx) => {
                  console.log(location.search.split("=")[1],idx,11)
                  i=idx; 
                  for(let i=0;i<res.length;i++){
                      if(location.search.split("=")[1]==res[i].goodsId){
                          $("tbody").html(` <tr><td><img src="${res[i].url}" alt=""></td>
                              <td>${res[i].name}</td>
                              <td>${res[i].price}</td>
                              <td><input type="number"></td>
                              <td>删除</td>
                          </tr>`)
                      }
                  }     
                  });
                 
              },
              dataType:"json"
      })
  
  
              </script>
                <!-- <tr>
                    <td><img src="" alt=""></td>
                    <td></td>
                    <td></td>
                    <td><input type="number"></td>
                    <td>删除</td>
                </tr> -->
            </tbody>
        </table>
    </div>


    <div class="about">
        <h1 class="address"> <a class="f12w" target="_blank" href="index.php">首页</a>| <a class="f12w" target="_blank" href="help.php?id=10">关于我们</a>| <a class="f12w" target="_blank" href="help.php?id=9">联系我们</a>| <a class="f12w" target="_blank" href="./job">集贤纳才</a>| <a class="f12w" target="_blank" href="help.php?id=49">服务条款</a>| <a class="f12w" target="_blank" href="./flink.php">友情链接</a>| <a class="f12w" target="_blank" href="http://www.xhm365.com/help.php?id=2">隐私保护</a> </h1>
        <div class="foot">
            <div class="bottom_zi_xb">
                <div class="bottom_zibg_xb"> <span class="footer_pic_left_xb">Copyright ©2008-2014 银座网上商城 版权所有。鲁ICP备09081806号</span> </div>
                <div class="bottom_zibg_xb">服务热线: 400-658-6060 | 大宗团购热线: 0531-67890997</div>
            </div>
        </div>
    </div>
  </div>
 
  <script>
      $(".topnav").find(".myegg").hover(function(){
          console.log($(this))
          $(this).find("ol").css({display:"block"})
      },function(){
        $(this).find("ol").css({display:"none"})
      })
  </script>
</body>
</html>